<%--
  Created by IntelliJ IDEA.
  User: 天火
  Date: 2019-03-01
  Time: 11:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <c:if test="${msg!=null}">
        <script type="text/javascript">
            var msg="${msg}"
            alert(msg);
        </script>
    </c:if>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="css/global.css" />
    <link rel="stylesheet" type="text/css" href="css/register.css" />
    <title>微博登录</title>
    <script type="text/javascript" src="script/register.js"></script>
    <script type="text/javascript" src="script/ajax.js"></script>
</head>
<body >
<!-- header结束-->
<!-- container 开始-->
<table border="0" align="center" cellpadding="0" cellspacing="0" id="container" >
    <tr>
        <td width="300" align="center" valign="top" class="pageright">
            <!-- userlogin 开始-->
            <form id="form1" name="form1" method="post" action="login_action" onsubmit="return checkForm()">
                <table id="login" width="220" border="0" cellspacing="0" cellpadding="0">

                    <tr>
                        <td colspan="10" align="left">邮箱地址：<br />
                            <input name="userid" type="text"  id="userid" onmouseover="this.focus()" width="30" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="10" align="left">输入你的登录密码：<br />
                            <input name="password" type="password"  id="password" onmouseover="this.focus()" width="30"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="120"><input name="save" type="checkbox" id="save" value="yes" />下次自动登录</td>
                        <td width="100"><a href="javaScript:void(0)" style="text-decoration:none" onclick="forgetmima()"><font color="#0066CC">找回登录密码</font></a></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input name="Submit" type="submit" class="loginbtn" id="Submit" value="  登录微博  " /></td>
                    </tr>
                    <tr>
                        <td colspan="2" class="title">没有微博登录账号？<a href="register">注册</a></td>
                    </tr>
                </table>
            </form>
            <!-- userlogin 结束-->
            <table id="msnlogin">
                <tr>
                    <td align="center"><a href="admin_login" style="text-decoration:none"><font color="#0066CC">管理员登陆</font></a><!-- <img src="images/msnlogin.png" width="143" height="32" /> --></td></tr>
            </table>
        </td>
    </tr>
</table>
<!-- container 结束-->
<form action="forget" id="forgetForm1" method="post"></form>
<script type="text/javascript">
    function forgetmima(){
        var email = prompt("请输入注册邮箱账号：", "");
        if(email != null){
            console.log(email);
            document.getElementById("forgetForm1").action="forget?email="+email;
            document.getElementById("forgetForm1").submit();
        }
    }
</script>
<!--footer开始-->
<%@include file="footer.jsp" %>
<!--footer结束-->
</body>
</html>
